home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / Windows / System32 / HTMLRE90.DLL / HTML / 11702 < prev    next >
Encoding:
Text File  |  2002-07-05  |  2.7 KB  |  128 lines

  1. <HTML>
  2.  
  3. <HEAD>
  4.     <LINK REL="stylesheet" TYPE="text/css" HREF="%1css/default.css">
  5.  
  6. <script language="Javascript">
  7. //LOCALIZATION STRINGS
  8. var _strNameMissing = "Please enter an event name.";
  9. var _strNameTooLong = "Please limit the name to 100 characters.";
  10.  
  11. var _strFileNameMissing = "Please enter a filename.";
  12.  
  13. var _strDescTooLong = "Please limit the description to 256 characters.";
  14. </script>
  15.  
  16. <SCRIPT language=Javascript>
  17. function onSubmit()
  18. {
  19.   // check for account name, description, and file name (for file events)
  20.  
  21.   // Name
  22.   var strName = document.forms.event_prop.eventName.value;
  23.   if (strName.length == 0)
  24.   {
  25.    alert(_strNameMissing);
  26.    document.forms.event_prop.eventName.focus();
  27.      return;
  28.   }
  29.   if (strName.length > 100)
  30.   {
  31.    alert(_strNameTooLong);
  32.    document.forms.event_prop.eventName.focus();
  33.      return;
  34.   }
  35.  
  36.   // Filename
  37.   if (document.forms.event_prop.fileName != null)
  38.   {
  39.     var strFileName = document.forms.event_prop.fileName.value;
  40.     if (strFileName.length == 0)
  41.     {
  42.        alert(_strFileNameMissing);
  43.      document.forms.event_prop.fileName.focus();
  44.        return;
  45.     }
  46.   }
  47.  
  48.   // Description
  49.   var strDesc = document.forms.event_prop.eventDesc.value;
  50.   if (strDesc.length >= 256)
  51.   {
  52.    alert(_strDescTooLong);
  53.    document.forms.event_prop.eventDesc.focus();
  54.      return;
  55.   }
  56.  
  57.     // Submit the properies
  58.     document.event_prop.submit();
  59. }
  60.  
  61. function onCancel()
  62. {
  63.   document.forms[0].reset();
  64. }
  65.  
  66. function onInit()
  67. {
  68.   document.forms.event_prop.eventName.focus();
  69. }
  70.  
  71.  
  72.  
  73. </SCRIPT>
  74.  
  75. </HEAD>
  76.  
  77. <BODY onLoad="onInit()" TOPMARGIN="0" LEFTMARGIN="5" MARGINHEIGHT="0" MARGINWIDTH="5">
  78. %2
  79. <FORM action="%3" method="post" name="event_prop" target="target_frame">
  80.  
  81. <input type="hidden" name="eventType" value="%4">
  82.  
  83. <table>
  84.   <tr>
  85.     <td class="list">Type:</td>
  86.     <td class="list">%5</td>
  87.   </tr>
  88.  
  89.   <tr><td> </td></tr>
  90.  
  91.   <tr>
  92.     <td class="list">Event Name:</td>
  93.     <td class="list"><input tabindex=1 name="eventName" value="%6" size=40></td>
  94.   </tr>
  95.  
  96.   <tr>
  97.     <td class="list">Description:</td>
  98.     <td class="list"><textarea wrap="virtual" tabindex=2 name="eventDesc" rows="7" cols="40">%7</textarea></td>
  99.   </tr>
  100.  
  101. %8
  102.  
  103. </table>
  104.  
  105. <BR>
  106.  
  107.  
  108. <table align=center CELLPADDING="0" CELLSPACING="5" border=0 width=20%>
  109. <tr>
  110.     <td><table cellpadding=0 border=0> 
  111.         <tr>
  112.             <td class="clsButton" align=middle nowrap>
  113.                 <div class="clsButton"><a href="javascript:onSubmit()" tabindex=11>Update</a></div>
  114.             </td>
  115.  
  116.             <td class="clsButton" align=middle nowrap>
  117.                 <div class="clsButton"><a href="javascript: onCancel()" tabindex=12>Reset</a></div>  
  118.             </td>
  119.         </tr>
  120.     </table></td>
  121. </tr>    
  122. </table>
  123.  
  124. </form>
  125.  
  126. </BODY>
  127. </HTML>
  128.